package com.cdpm.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author WeiHongBin
 * @since 2019-11-26
 */
@Data
@EqualsAndHashCode
@Accessors(chain = true)
@TableName("works")
@ApiModel(value = "Work对象")
public class Work implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "标题")
    @TableField("title")
    private String title;

    @ApiModelProperty(value = "描述")
    @TableField("description")
    private String description;

    @TableField("cover_image_url")
    private String coverImageUrl;

    @TableField("pages")
    private String pages;

    @TableField("is_publish")
    private Boolean publish;

    @TableField("is_template")
    private Boolean template;

    @ApiModelProperty(value = "创建时间")
    @TableField("created_at")
    private LocalDateTime createTime;

    @TableField("updated_at")
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @TableField("valid")
    private Integer valid;

    @TableField("created_by")
    private String createdBy;

    @TableField("updated_by")
    private String updatedBy;




}